package com.stellar.wechat.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotEmpty;

/**
 * @Author Jqcc
 * @Version 1.0
 * @Data 2025/3/29
 * @Description 微信小程序配置
 */
@Configuration
@ConfigurationProperties(prefix = "wx.mp")
@Data
@Validated
public class WxMiniProgramConfig {

    @NotEmpty
    private String appId;

    @NotEmpty
    private String appSecret;

    private String apiBaseUrl = "https://api.weixin.qq.com";
}